#!/bin/bash

CMD=""

case "$1" in
  master)
    hbase-daemon.sh foreground_start master
  ;;
  regionserver)
    hbase-daemon.sh foreground_start regionserver
  ;;
  rest)
    hbase-daemon.sh foreground_start rest
  ;;
  thrift)
    hbase-daemon.sh foreground_start thrift
  ;;
  bash)
  CMD="bash"
  /bin/bash
  ;;
esac

#sh /opt/daemon.sh
#exec /usr/bin/tini -s -- "${CMD}"
